package hp.com.service;

import hp.com.entity.CartData;

import java.util.List;

public interface CartDataService {
    /**
     * 查看购物车数据
     * @param name 用户的ID
     * @return
     * @throws Exception
     */
    List<CartData> BuyCarShow(String name) throws Exception;
    //删除购物车数据
    void DeleteCartData(int id) throws Exception;
    //查询单个购物车数据
    CartData GetCartDataById(int id) throws Exception;
    //设置、查询数量更新后的价格数据
    double UpdateAmount(CartData cart,int amount) throws Exception;
    //获取购物车CartData对象
    CartData getCartData(int itemId,int userId,String suk, int amount) throws Exception;
    //添加数据到购物车
    boolean AddToCart(CartData cart) throws Exception;
}
